#!/bin/sh


make

rm -fr sagePointer

#python2.5 setup.py py2app --site-packages -a
python setup.py py2app --site-packages -a

#cp /Library/Python/2.7/site-packages/py2app-0.7.3-py2.7.egg/py2app/apptemplate/prebuilt/main-i386 sagePointer/Sage\ Pointer.app/Contents/MacOS/Sage\ Pointer
cp /Library/Python/2.7/site-packages/py2app-0.7.3-py2.7.egg/py2app/apptemplate/prebuilt/main-x86_64 sagePointer/Sage\ Pointer.app/Contents/MacOS/Sage\ Pointer
chmod +x ./sagePointer/Sage\ Pointer.app/Contents/Resources/macCapture
 

echo 
echo "======  DONE! Your Sage Pointer.app should be in sagePointer directory"
echo 
